import { IResponse } from "@/http/axios/modules"
import { ajaxGet, ajaxPut } from "@/http/axios/request"
import { IMemberInfo } from "@/modules/user/info"

export const getAdminInfo = (): Promise<IResponse<any>> => {
  return ajaxGet('/admin/admin/adminInfo')
}

export const updateUserInfo = (data: IMemberInfo) => {
    return ajaxPut('/admin/admin/editAdmin', data)
}